package com.example.dubbo.storage.core.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class PageController {

    // http://localhost:8083/index.html
    @RequestMapping("/{pageName}.html")
    public String pageName(HttpServletRequest request, @PathVariable String pageName) {
        request.setAttribute("pageName", pageName);
        return pageName;
    }
}
